package com.goldfish666.remote_control.util;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class TVHelper {

    private static int minSize = 0;

    private static int stateCount = 0;

    private static int powerSwitchStateCount = 0;

    public static void setFunction(String functionName) {

        setStateCount(functionName);

        setMaxSize();

    }

    private static void setStateCount(String functionName) {
        switch (functionName) {
            default: {
                setDefaultStateCount();
            }
        }
    }

    private static void setDefaultStateCount() {
        stateCount = 6;
    }

    private static void setMaxSize() {
        minSize = 2 * stateCount;
    }

    public static int getMinSize() {
        return minSize;
    }

    public static int getStateCount() {
        return stateCount;
    }
}
